using System.Collections.Generic;
using Neo.Core;

namespace Neo.Core
{
    ///<summary>A validating entity
    ///</summary>
    public interface IValidatingEntity
    {
        /// <summary>
        /// Gets a collection representing the validation errors found.
        /// </summary>
        /// <value>The validation errors.</value>
        List<EntityValidationError> ValidationErrors { get; }

        /// <summary>
        /// Determines whether this entity was found to have errors.</summary>
        /// <returns>
        /// 	<c>true</c> if this instance is valid; otherwise, <c>false</c>.
        /// </returns>
        bool IsValid();
    }
}